﻿@using GSLMS.Entity
@model TB_APP_PROINFO
@{
    Layout = null;
    var currentUser = Session["CurentUser"] as GSLMS.Entity.DTO.CurrentUserDTO;

}
<div id="divRiskControlLoger">
    <div class="pageContent" layouth="5">
        <form method="post" action="DianDang/FKAudit/RiskControl/Loger?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
    onsubmit="return validateCallback(this, RiskControlLogerdialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="350">
            @Html.HiddenFor(model => model.ID)
            <p>
                <label>
                    客户名称：</label>
                @Html.TextBox("CUSTNAME", Model.CUSTNAME, new { @class = "required", @readonly = "true" })
            </p>
            <p>
                <label>
                    证件号码：</label>
                @Html.TextBox("CUSTNO", Model.CUSTNO, new { @class = "required", @readonly = "true" })
            </p>
            <p>
                <label>
                    来源渠道：</label>
                @Html.ValueFor(model => Model.SOURCE)
            </p>
            <p>
                <label>
                    记录时间：</label>
                @Html.TextBox("LOGTIME", DateTime.Now, new { @readonly = "true" })
            </p>
            <p>
                <label>
                    跟进人：</label>
                @Html.TextBox("LOGBY", currentUser.UserName, new { @class = "required", @readonly = "true" })
            </p>
            <div class="divider" />
            <p style="width: 90%">
                <label>
                    情况说明：</label>
                @Html.TextArea("DETAIL", new { @cols = "70", @rows = "3" })
            </p>
        </div>
        @Html.Partial("FormButtonBar")
        </form>
        <div class="divider" />
        <div id="divRiskLogerList">
            @Html.Action("LogerList", "RiskControl", new { area = "DianDang/FKAudit", id = Model.ID })
        </div>
    </div>
</div>
<script>
    RiskControlLogerdialogAjaxDone = function (json) {
        DWZ.ajaxDone(json);
        if (json.statusCode == DWZ.statusCode.ok) {
            $("#divRiskLogerList").loadUrl("DianDang/FKAudit/RiskControl/LogerList/@Model.ID");
        }
        if ("closeCurrent" == json.callbackType) {
            $.pdialog.closeCurrent();
        }
    }
</script>
